home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / programming / source / f2c3.2src.lha / f2c-for-SASC651 / libF77 / d_abs.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-29  |  151 b   |  13 lines

  1. #include "f2c.h"
  2.  
  3. #ifdef KR_headers
  4. double d_abs(x) doublereal *x;
  5. #else
  6. double d_abs(doublereal *x)
  7. #endif
  8. {
  9. if(*x >= 0)
  10.     return(*x);
  11. return(- *x);
  12. }
  13.